package BO_17_04;

public class Solution {
	public int missingNumber(int[] nums) {
		int n = nums.length;
		int res = 0;
		res^=n;
		for (int i = 0; i < nums.length; i++) {
			res ^= i^nums[i];
		}
		return res;
    }
}
